A large e-commerce
application such as eBay, caters to a large number of
customers around the globe. Assume that there are
multiple microservices involved in building
the application. Can you share the process of
buying a product on eBay? Let's understand the
application workflow of eBay. While making an online purchase, a user registers for an application and adds
products to the cart. After users select
the payment option, they are redirected to
the payment gateway. After the user
makes the payment, the order is confirmed. An application has many
services that cater to different requests
from different clients. Do you think all these
operations occur in a sequence? Is it important for the
services to interact with each other for the effective
working of an application? How do they communicate? Once the product is shipped, is it mandatory for the
shipping service to send an acknowledgment to the
notification service that notifies the user? In chat applications,
such as WhatsApp, users send messages
to individuals or groups whose contact details they have saved on
their cell phones. Those chat messages are seen by other users when they
wish to see them. Now comes the questions; Where are the messages stored until the
receivers view them? Do messages get deleted if receivers do not see
them for a long time? Does the sender get
an acknowledgment of the message received
by the receiver? Slack messaging is another
type of chat application. Here, the users send direct messages to individuals
and groups as channels. Those messages are viewed by the receivers when
they opened the app. Does the sender expect
the receiver to respond immediately after
sending the message? Does the receiver
get a notification that some messages are
waiting to be viewed? How long will the message be available for the
receiver to view? Do you think synchronous
communication among microservices
alone is sufficient? Do you think all operations
occur in a sequence? What happens if one of
the services is down? Where does the data go? If the payment service is down, what will happen to the
products present in the cart? Will they still be
present in the cart? In this course,
you will learn how to explore microservices
communication. Implement synchronous
communication between microservices. Explore asynchronous
communication between microservices
using RabbitMQ. Configure RabbitMQ server
for asynchronous messaging. Implement messaging
using RabbitMQ.